"""
合同的数据结构
"""

from typing import Optional, List, Dict
from pydantic import BaseModel, Field


class Contract(BaseModel):
    """合同的id, 名称，段落，其他相关信息"""
    id: str
    name: str
    paragraphs: List[Dict]
    metadata: Optional[dict] = Field(None)